package com.sky.mapper;

import com.sky.anotation.AllFull;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface FlavorMapper {
	public List<DishFlavor> dishFlavors(Long id);

	@Delete("delete from dish_flavor where dish_id = #{dishId}")
	Integer deleteById(Long dishId);

	@Insert("insert into dish_flavor values (null, #{dishId}, #{name}, #{value})")
	Integer insert(DishFlavor dishFlavor);

}
